package com.example.xloong.mymvvm.base;

import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;
import android.view.View;


/**
 * Created by Xloong on 2018/1/26.
 */

public class BaseViewHolder<B extends ViewDataBinding> extends RecyclerView.ViewHolder {

    private B mBinding;

    public BaseViewHolder(B binding) {
        super(binding.getRoot());
        mBinding = binding;

    }

    /**
     *
     * @return viewDataBinding
     */

    public B getmBinding() {
        return mBinding;
    }
}
